package task3

class Project implements Serializable {
    String name

    static belongsTo = [department: Department]
    static hasMany = [people: Human]

    static mapping={
        people lazy:false
    }

    static constraints = {
        name(size: 3..20, blank: false, unique:'department')
    }

    String toString(){
        "${name}"
    }

}
